#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void Kgb(int x)
{
	int i = x, j = x;
	for (i = 1; i <= x; i++)
	{
		for (j = 1; j <= i; j++)
			printf("%2d*%-2d=%-2d", j, i, i*j);
		printf("\n");
	}

}

int main()
{
	int num = 0;
	scanf("%d", &num);

	Kgb(num);

	return 0;
}